{include file="pub_header.htm"}

<div class="out_table">
<table width="100%" cellpadding="3" cellspacing="0" border="0" align="center" class="current_place">
  <tr>
    <td align="left" nowrap>&nbsp;
      <a href="{$lang.s._public.global.weburl}" target="_self" class="current_place">{$lang.s._public.global.website}</a>
      &raquo; <a href="{$control_index}?act=index" target="_self" class="current_place">论坛首页</a>
      &raquo; <a href="{$control_index}?act=cp" target="_self" class="current_place">会员中心</a>
    </td>
    <td align="right" nowrap>&nbsp;</td>
  </tr>
</table>
</div>

<div class="out_table"><div class="space"></div></div>
<div class="out_table">
<table width="98%" cellpadding="3" cellspacing="0" border="0" align="center" class="block_group">
  <tr align="left" class="block_header">
    <td colspan="2">头像设定</td>
  </tr>
  <tr>
    <td align="center" valign="top" width="20%" class="block_left">
      {include file="pub_cp_menu.htm"}
    </td>
    <td align="center" valign="top" width="80%" class="block_right">
    <table width="98%" cellpadding="3" cellspacing="0" border="0" align="center" class="current_place">
      <tr>
        <td height="20" align="left" class="current_place" nowrap>
          <a href="{$control_index}?act=cp" target="_self" class="current_place">会员中心</a>
          &raquo; <a href="{$control_index}?act=cp_avatar" target="_self" class="current_place">头像设定</a>
        </td>
        <td align="right" class="current_place" nowrap>&nbsp;</td>
      </tr>
    </table>
    <div class="space"></div>
    <form id="cp_avatar" name="cp_avatar" method="post" action="javascript:void(null);" enctype="multipart/form-data">
    <table width="98%" cellpadding="3" cellspacing="0" border="0" align="center" class="block_group">
      <tr class="block_title">
        <td colspan="3" align="left">头像设定</td>
      </tr>
      <tr>
        <td width="20%" align="right" class="block_left">现有头像:</td>
        <td width="80%" align="left" valign="top" class="block_right">
          <span id="avatar_value_show" name="avatar_value_show">{$avatar_value_show}</span>
        </td>
      </tr>
      <tr>
        <td align="right" class="block_left">设定头像:</td>
        <td align="left" valign="top" class="block_right">
          <select id="avatar_type" name="avatar_type" class="select">
            <option value="0" {if $member.detail.avatar_type != "1" && $member.detail.avatar_type != "2" && $member.detail.avatar_type != "3" && $member.detail.avatar_type != "4"}selected{/if}>无</option>
            <option value="1" {if $member.detail.avatar_type == "1"}selected{/if}>选择现有图片</option>
            <option value="2" {if $member.detail.avatar_type == "2"}selected{/if}>链接远程图片</option>
            <option value="3" {if $member.detail.avatar_type == "3"}selected{/if}>上传自定义图片</option>
          </select>
          <span id="avatar_prompt" name="avatar_prompt"><span class="prompt_primal"></span></span>
        </td>
      </tr>
      <tr>
        <td align="right" class="block_left"></td>
        <td align="left" valign="top" class="block_right">
          <span id="avatar_type_show" name="avatar_type_show"></span>
        </td>
      </tr>
      <tr>
        <td colspan="2" align="center" class="block_footer">
          <input type="button" id="cp_avatar_submit" name="cp_avatar_submit" value="确定" class="button"
            onclick="xajax.$('cp_avatar_submit').disabled=true;
                     xajax.$('cp_avatar_submit').value='请等待...';
                     xajax_cp_avatar(xajax.getFormValues('cp_avatar'));">
        </td>
      </tr>
    </table>
    </form>
    </td>
  </tr>
</table>
</div>

{include file="pub_footer.htm"}